REM (C)2010-13 David Jones
REM Thanks to Mike Hall

REM CEContentWiz
@echo on
@echo Executing CEContentWiz Postlink.bat
@echo http://CEContentWiz.codeplex.com
@echo .

if %_WINCEOSVER%WXYZ == WXYZ GOTO SKIP

if %_WINCEOSVER%WXYZ LSS 800 GOTO SKIP

@echo copying Content Files from Resource Files folder to Targeted Debug Directory
if %_WINCEOSVER%==800 (
REM Small change for Compact 2013
copy ".\Resources\*.*" "%SG_OUTPUT_ROOT%\oak\target\%_TGTCPU%\%WINCEDEBUG%"  /Y
REM Needed by Managed Code Tools (Common resources)
copy     "..\..\Misc\tools.ico"    "%SG_OUTPUT_ROOT%\oak\target\%_TGTCPU%\%WINCEDEBUG%"  /Y   
copy    "..\..\Misc\AboutBox.png"  "%SG_OUTPUT_ROOT%\oak\target\%_TGTCPU%\%WINCEDEBUG%"  /Y   
) else (
echo Compact/CE Version:%_WINCEOSVER%  Not supported
GOTO SKIP
)

@echo .

@echo copying Content Files from Resource Files folder to FlatRelease Directory
rem copy "%BUILDROOT%\Resources\*.*" %_FLATRELEASEDIR%  /Y
if %_WINCEOSVER%==800 (
REM Small change for Compact 2013
copy ".\Resources\*.*" %_FLATRELEASEDIR%  /Y
REM Needed by Managed Code Tools (Common resources)
copy     "..\..\Misc\tools.ico"    %_FLATRELEASEDIR%  /Y
copy    "..\..\Misc\AboutBox.png"  %_FLATRELEASEDIR%  /Y 
) else (
echo Compact/CE Version:%_WINCEOSVER%  Not supported
GOTO SKIP
)



@echo .
@echo Done Copying
@echo .

GOTO DONE

:SKIP
@echo Only Windows Embedded Compact 2013 is supported


:DONE



